<?php
/**
*
* @package ppkBB3cker
* @version $Id: tgconf.php 1.000 2009-11-08 12:22:00 PPK $
* @copyright (c) 2009 PPK
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/

/**
* @ignore
*/
if (!defined('IN_PHPBB'))
{
	exit;
}

define('TRACKER_CONFIG_TABLE', $table_prefix . 'tracker_config');

$sql = 'SELECT config_name, config_value FROM '.TRACKER_CONFIG_TABLE." WHERE config_name IN('ppkbb_tccheck_fext', 'ppkbb_tcdead_time', 'ppkbb_tcguests_enabled', 'ppkbb_tcannounce_interval', 'ppkbb_tcminannounce_interval', 'ppkbb_tctracker_disabled') OR config_name LIKE 'ppkbb\_gtc%'";
$result = my_sql_query($sql);
while($row=mysql_fetch_row($result))
{
	$row[0]=str_replace('ppkbb_gtc', 'ppkbb_tc', $row[0]);
	$$row[0]=$row[1];
	$trcache_config[$row[0]]=$row[1];
}
mysql_free_result($result);

include_once($tincludedir.'tcache.'.$phpEx);

t_recache('gconfig', $trcache_config);
?>
